package com.mindata.blockmanager.utils;

import org.apache.shiro.crypto.hash.Md5Hash;

/**
 * User: jasperxgwang
 * Date: 2018-8-8 14:35
 */
public class ShiroMd5Util {

    public static final int SHIRO_HASH_ITERATIONS = 2;

    public static String getMd5Pwd(String pwd, String salt) {
        Md5Hash md5Hash = new Md5Hash(pwd, salt, SHIRO_HASH_ITERATIONS);
        return md5Hash.toString();
    }
}
